import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token'

//文章分类列表查询
export const articleCategortListService = () =>{
    const tokenStore = useTokenStore();
    // tokenStore.token

    //在poinia中定义的响应式数据，都不需要.value
    return request.get('/category',{headers:{'Authorization':tokenStore.token}})
}